package com.example.music_mediaplayer;

/**
 * Created by quan on 2018/1/5.
 */

public class ApiInfo {

    private static ApiInfo mInstance;
    //网易音乐接口
    public final static String wangYiUrl = "https://api.imjad.cn/cloudmusic/";
    public final static String wangYiSearch = wangYiUrl +"?limit=60";//搜索歌曲
    public final static String wangYiSongUrl = wangYiUrl + "?";//通过歌曲id获取歌曲的url
    public final static String wangYiSongLyric = wangYiUrl + "?";
    //百度音乐接口
    public final static String baiDuUrl = "http://musicmini.baidu.com/";
    public final static String baiDuSearch = baiDuUrl + "app/search/searchList.php?ie=utf-8&page=1&qword=";//搜索歌曲
    public final static String baiDuSongUrl = "http://music.baidu.com/data/music/links?";//根据id获取歌曲的url

    //酷我音乐接口
    public final static String kuWoUrl = "http://search.kuwo.cn/r.s";
    public final static String kuWoSearch = kuWoUrl + "?ft=music&itemset=web_2013&client=kt&rformat=json&encoding=utf8";//搜索歌曲
    public final static String kuWoSongUrl = "http://antiserver.kuwo.cn/anti.s?type=convert_url&format=aac|mp3&response=url";//根据id获取歌曲url

    //虾米音乐接口
    public final static String xiaMiUrl = "http://www.xiami.com/";
    public final static String xiaMiSearch = xiaMiUrl + "search/song/page/3?key=";//搜索歌曲
    public final static String xiaMiSongUrl = xiaMiUrl + "play?ids=/song/playlist/id/";//获取歌曲Url
//    http://www.xiami.com/play?ids=/song/playlist/id/

    //酷狗音乐接口
    public final static String kuGouUrl = "http://mobilecdn.kugou.com/api/v3/search/song";
    public final static String kuGouSearch = kuGouUrl + "?format=jsonp";//搜索歌曲
    public final static String kuGouSongUrl = "http://m.kugou.com/app/i/getSongInfo.php?cmd=playInfo";

    //QQ音乐接口
    public final static String QQUrl = "https://c.y.qq.com/soso/fcgi-bin/client_search_cp?ct=24";
    public final static String QQSearch = QQUrl + "&qqmusic_ver=1298&new_json=1&remoteplace=txt.yqq.song&searchid=59119155468543049&t=0&aggr=1&cr=1&catZhida=1&lossless=0&flag_qc=0&g_tk=5381&jsonpCallback=MusicJsonCallback16233828345331847&loginUin=0&hostUin=0&format=jsonp&inCharset=utf8&outCharset=utf-8&notice=0&platform=yqq&needNewCode=0";

    //获取当前类的对象（单例）
    public static ApiInfo getmInstance(){
        if (mInstance == null){
            mInstance = new ApiInfo();
        }
        return mInstance;
    }
}
